package com.ldy.gen.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author ldy
 * @since 2023-09-29 15:02:29
 */
@Getter
@Setter
@TableName("account_user")
@ApiModel(value = "AccountUser对象", description = "用户表")
public class AccountUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty("用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty("密码(密文)")
    @TableField("password")
    private String password;

    @ApiModelProperty("该服务商唯一用户标识（app平台）")
    @TableField("open_id")
    private String openId;

    @ApiModelProperty("当且仅当该移动应用已获得该用户的 userinfo 授权时，才会出现该字段")
    @TableField("unionid")
    private String unionid;

    @ApiModelProperty("账号注册的方式，默认值0")
    @TableField("register_mode")
    private Integer registerMode;

    @ApiModelProperty("手机号")
    @TableField("telephone")
    private String telephone;

    @ApiModelProperty("生日")
    @TableField("birth")
    private LocalDateTime birth;

    @ApiModelProperty("邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("登录的地址")
    @TableField("login_adress")
    private String loginAdress;

    @ApiModelProperty("登录时间")
    @TableField("login_time")
    private LocalDateTime loginTime;

    @ApiModelProperty("登录ip")
    @TableField("login_ip")
    private String loginIp;

    @ApiModelProperty("头像地址")
    @TableField("avatar_url")
    private String avatarUrl;

    @ApiModelProperty("城市")
    @TableField("city")
    private String city;

    @ApiModelProperty("省份")
    @TableField("province")
    private String province;

    @ApiModelProperty("国家")
    @TableField("country")
    private String country;

    @ApiModelProperty("区域")
    @TableField("area")
    private String area;

    @ApiModelProperty("性别，1表示男，2表示女")
    @TableField("gender")
    private Boolean gender;

    @ApiModelProperty("昵称")
    @TableField("nickname")
    private String nickname;

    @ApiModelProperty("是否启用，1表示启用，0表示禁用")
    @TableField("enabled")
    private Boolean enabled;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("数据创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("数据最后修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("数据创建者")
    @TableField("creator")
    private String creator;

    @ApiModelProperty("数据更新者")
    @TableField("updater")
    private String updater;


}
